package MathTest;

import MathTest.Factory.Factory;
import MathTest.Language.*;
import MathTest.Question.Question;
import MathTest.Question.Test;

import java.util.Scanner;
//Client classes
public class MyTest {
    public static int n;
    public static int grade;
    public static Language lan;
    Question question;
    public MyTest(Factory factory){
        lan = factory.CreateLanguageObject();
    }
    public void Print(String s){
        lan.Print(s);
    }
    public void setGrade(int grade) {
        this.grade = grade;
    }
    public void setN(int n) {
        this.n = n;
    }
    public void MyTest(Question question){
        if(grade==1)
            question.AddSub();
        else if(grade==2)
            question.AddSubMultiDiv();
        else if(grade==3)
            question.AddSubMultiDivBranket();
        else
            question.Fraction();
    }
}
